const fs = require('fs');

let res = fs.writeFileSync('./1.txt','内容');
console.log(res);


fs.writeFile('2.txt','内容2',()=>{
    console.log("执行了");
})

console.log('end');